<?php
session_start();
header("Cache-Control: no-cache, must-revalidate");
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");


	require_once('config.php');
	
//$db = @mysql_connect(DB_HOST, DB_USER, DB_PASS);
//mysql_select_db(DB_DATABASE);

	


isset($_REQUEST['page']) ? $_SESSION['page'] = $_REQUEST['page'] : 1;
isset($_SESSION['page']) ? 1 : $_SESSION['page'] = "start";

require_once("".$_SESSION['page'].".php");
if(isset($_REQUEST['refreshtree']))
{
	require_once('lib/tree.php');
	echo getLeftTreeOutput();
	
}


function getLeftTreeOutput()
{
	$retval = "";
	//echo "[|]exta[|]".treeGetTree()."a ";
	$retval .= treeGetTree();
	$retval .= "[|]eval[|]new tree (TREE_ITEMS, tree_tpl);[|]";
	
	return $retval;
}
?>
